/*
 * File:   Creature.h
 * Author: Twelve
 *
 * Created on 4 Январь 2011 г., 21:29
 */

#ifndef CREATURE_H
#define	CREATURE_H

#define PC 10
#define MOB 11
#define NPC 12




#include "main.h"
#include "ftechinfo.h"
//using namespace std;

class Creature {
public:
    Creature();

    Creature(int PCorNPC  = 0 ,int RaceType  = 0 );

    Creature(const Creature& orig);
    virtual ~Creature();

    // damage that creature recieve
    void DamRecieve(int newhp);
    // return hp
    int GetHp();
    // return damage value
    int GetMeleeHitValue();

    void SetTohit(int Tohit);

    double SetMonAtkSpd(int PDex);

    void SetupAtkMoves();

    //Race Stats

    bool IsDead;


    string MobGamesStatus;

    // name
    string RName;
    // stats
    int Str, Dex, Int, Endu;
    // chance to hit
    int Tohit;
    // description
    string Descr;
    // hp max, hp cur
    int hp, HPMAX;
    // attack speed (player speed = 1)
    int atkspd;



    int FStyle;
    vector<string> hittype;
    

    string GetHitType(int i);

    void SetFightingStyle(int i);

private:

};

#endif	/* CREATURE_H */

